import axios from "axios";

axios.post('http://localhost:8080/api/user/change', {
    username: 'Wooming',
    password: 'MyServer123456',
},{
    headers: {
        'Content-Type': 'application/json',
        'Authorization': 'Bearer ' + 'eyJ0eXAiOiJKV1QiLCJhbGciOiJTSEEyNTYifQ.eyJzdWIiOjEsInJvbGUiOm51bGwsInN0YWdlIjoxLCJ1c2VybmFtZSI6Ildvb21pbmcifQ.L7Pgr0osFEmI7Si6RvM-3hicaRM8Fcz5txWHDBMSMng'
    }
}).then(res => {
    console.log(res.data);
})